#include "shm.hpp"

int main()
{
    //创建共享内存
    Shm shm(pathname,proc_id,creater);
    char* shmaddr = (char*)shm.Addr();
    while(true)
    {
        std::cout << "shm memory content: " << shmaddr << std::endl;
        sleep(1);
    }
    return 0;
}